<%--
  Created by IntelliJ IDEA.
  User: 刘冉
  Date: 2024/10/14
  Time: 10:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
</head>
<body>
<form  class="layui-form"  method="post" action="/student/updateSave">
    <%--隐藏域--%>
    <input type="hidden" name="sId" value="${student.sId}">
    <div class="layui-form-item">
        <label class="layui-form-label">学号</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="studentNum"  value="${student.studentNum}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="studentName"  value="${student.studentName}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="gender"  value="${student.gender}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">年龄</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="age"  value="${student.age}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">出生日期</label>
            <div class="layui-input-inline layui-input-wrap">
                <input type="text" id="birthday" name="birthday" value="${student.birthday}" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">班级编号</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="classId"  value="${student.classId}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍编号</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="hostelId"  value="${student.hostelId}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系方式</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="phone"  value="${student.phone}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="email"  value="${student.email}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">家庭住址</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="homeAddress"  value="${student.homeAddress}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">紧急联系人</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="emergencyContact"  value="${student.emergencyContact}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">紧急联系电话</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="emergencyContactPhone"  value="${student.emergencyContactPhone}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">专业</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="major"  value="${student.major}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学生状态（0：在读，1：毕业）</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="status"  value="${student.status}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">删除标记（0：存在，1：删除）</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="delFlag"  value="${student.delFlag}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">创建人</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="createBy"  value="${student.createBy}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">创建时间</label>
            <div class="layui-input-inline layui-input-wrap">
                <input type="text" id="createTime" name="createTime" value="${student.createTime}" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">更新人</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="updateBy"  value="${student.updateBy}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">更新时间</label>
            <div class="layui-input-inline layui-input-wrap">
                <input type="text" id="updateTime" name="updateTime" value="${student.updateTime}" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="remark"  value="${student.remark}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit lay-filter="demo1">更新</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script src="/static/layui/layui.js"></script>
<script>
    layui.use(function () {
        var laydate = layui.laydate;
        //渲染
        laydate.render({
            elem: '#birthday'
        });
        laydate.render({
            elem: '#createTime'
        });
        laydate.render({
            elem: '#updateTime'
        });
    });
</script>
</body>
</html>
